<?php
namespace App\Animal;

class Cat extends Animal
{
    private $weight;

    public function __construct($name, $color, $weight)
    {
        parent::__construct($name, $color);
        $this->weight = $weight;
    }

    public function eat()
    {
        echo $this->color . '的' . $this->name . '的体重为:' . $this->weight . ',在蹦跑中捕食，或者猫粮<br/>';
    }

    public function breath()
    {
        echo '用鼻子，肺呼吸<br/>';
    }

    public function sleep()
    {
        echo '趴着睡觉' . '<br/>';
    }

    public function scream()
    {
        echo 'Miao, do not kill me bitch!<br/>';
    }
}